package com.nineclock.auth.exception;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

@JsonSerialize(using = NcOAuthExceptionJacksonSerializer.class) //指定自定义的序列化方式进行序列化

public class NcOAuth2Exception extends OAuth2Exception {

    public NcOAuth2Exception(String msg, Throwable t) {

        super(msg, t);
    }
    public NcOAuth2Exception(String msg) {

        super(msg);
    }
}